package com.ymttest.database.sqlwapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;

public class GetAddressListWapper {
	SqlManager manage;
	
	public GetAddressListWapper() {
		manage = new SqlManager("ymtstress");
		 
	}
	public List<Map> selectOrder(Map m) throws InterruptedException {
		List<Map> ioderidCatLogs = manage.getSelectResults("com.ymttest.database.mapping.GetAddressListMapper.selectOrder",m);
		// manage.close();
		return ioderidCatLogs;
	}
	public static void main(String args[]) {
	    try {	          
	    	GetAddressListWapper getwapper=new GetAddressListWapper();
	    	
	    	Map m = new HashMap();
	    	m.put("UserId", 3383);
	    	List<Map> rm = getwapper.selectOrder(m);
	    	for(Map map : rm){
	    		
	    		String iOrderId = String.valueOf(map.get("iOrderId"));
	        	Logger.debug(iOrderId);  
	    	}  
	    	  
	    	  
	    } catch (InterruptedException e) {
	        e.printStackTrace(); 
	    }
	}
}
